package org.hibernate.dialect;

public class Oracle10gDialectWithoutFK extends Oracle10gDialect {

    @Override
    public String getAddForeignKeyConstraintString(
            String constraintName,
            String foreignKeyDefinition) {
        return " ";
//		return new StringBuilder( 30 )
//				.append( " add constraint " )
//				.append( quote( constraintName ) )
//				.append( " " )
//				.append( foreignKeyDefinition )
//				.toString();
    }

    @Override
    public String getAddForeignKeyConstraintString(
            String constraintName,
            String[] foreignKey,
            String referencedTable,
            String[] primaryKey,
            boolean referencesPrimaryKey) {
        return " modify " + foreignKey[0] + " default null ";
        
//		final StringBuilder res = new StringBuilder( 30 );
//
//		res.append( " add constraint " )
//				.append( quote( constraintName ) )
//				.append( " foreign key (" )
//				.append( StringHelper.join( ", ", foreignKey ) )
//				.append( ") references " )
//				.append( referencedTable );
//
//		if ( !referencesPrimaryKey ) {
//			res.append( " (" )
//					.append( StringHelper.join( ", ", primaryKey ) )
//					.append( ')' );
//		}
//
//		return res.toString();
    }

    @Override
    public String getDropForeignKeyString() {
        return " ";
    }
}
